package com.cy.pj.Controller;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;


@Controller
@ResponseBody
public class HealthController {
//    public ModelAndView doHealth(){
//        ModelAndView md = new ModelAndView();
//        md.setViewName("default");
//        md.addObject("username","张三");
//        md.addObject("state","good");
//        return md;
//    }
    @RequestMapping("/doHealthUI")
    public String doHealthUI(){
        return "default";
    }

}
